<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html 
     PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <title>Class: GamedayLocalFetcher</title>
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  <meta http-equiv="Content-Script-Type" content="text/javascript" />
  <link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
  <script type="text/javascript">
  // <![CDATA[

  function popupCode( url ) {
    window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
  }

  function toggleCode( id ) {
    if ( document.getElementById )
      elem = document.getElementById( id );
    else if ( document.all )
      elem = eval( "document.all." + id );
    else
      return false;

    elemStyle = elem.style;
    
    if ( elemStyle.display != "block" ) {
      elemStyle.display = "block"
    } else {
      elemStyle.display = "none"
    }

    return true;
  }
  
  // Make codeblocks hidden by default
  document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
  
  // ]]>
  </script>

</head>
<body>



    <div id="classHeader">
        <table class="header-table">
        <tr class="top-aligned-row">
          <td><strong>Class</strong></td>
          <td class="class-name-in-header">GamedayLocalFetcher</td>
        </tr>
        <tr class="top-aligned-row">
            <td><strong>In:</strong></td>
            <td>
                <a href="../files/lib/gameday_local_fetcher_rb.html">
                lib/gameday_local_fetcher.rb
                </a>
        <br />
            </td>
        </tr>

        <tr class="top-aligned-row">
            <td><strong>Parent:</strong></td>
            <td>
                Object
            </td>
        </tr>
        </table>
    </div>
  <!-- banner header -->

  <div id="bodyContent">



  <div id="contextContent">

    <div id="description">
      <p>
This class is responsible for retrieving gameday data files from the local
file system. It contains methods that read or open a connection to the XML
files that have been saved to the local filesystem.
</p>

    </div>


   </div>

    <div id="method-list">
      <h3 class="section-bar">Methods</h3>

      <div class="name-list">
      <a href="#M000249">fetch_batter</a>&nbsp;&nbsp;
      <a href="#M000255">fetch_batters_page</a>&nbsp;&nbsp;
      <a href="#M000236">fetch_bench</a>&nbsp;&nbsp;
      <a href="#M000237">fetch_bencho</a>&nbsp;&nbsp;
      <a href="#M000238">fetch_boxscore</a>&nbsp;&nbsp;
      <a href="#M000235">fetch_day_highlights</a>&nbsp;&nbsp;
      <a href="#M000239">fetch_emailsource</a>&nbsp;&nbsp;
      <a href="#M000233">fetch_epg</a>&nbsp;&nbsp;
      <a href="#M000240">fetch_eventlog</a>&nbsp;&nbsp;
      <a href="#M000242">fetch_game_events</a>&nbsp;&nbsp;
      <a href="#M000241">fetch_game_xml</a>&nbsp;&nbsp;
      <a href="#M000243">fetch_gamecenter_xml</a>&nbsp;&nbsp;
      <a href="#M000244">fetch_gamedaysyn</a>&nbsp;&nbsp;
      <a href="#M000254">fetch_games_page</a>&nbsp;&nbsp;
      <a href="#M000253">fetch_inning_hit</a>&nbsp;&nbsp;
      <a href="#M000252">fetch_inning_scores</a>&nbsp;&nbsp;
      <a href="#M000251">fetch_inningx</a>&nbsp;&nbsp;
      <a href="#M000245">fetch_linescore</a>&nbsp;&nbsp;
      <a href="#M000257">fetch_media_highlights</a>&nbsp;&nbsp;
      <a href="#M000258">fetch_media_mobile</a>&nbsp;&nbsp;
      <a href="#M000246">fetch_miniscoreboard</a>&nbsp;&nbsp;
      <a href="#M000262">fetch_notifications_full</a>&nbsp;&nbsp;
      <a href="#M000261">fetch_notifications_inning</a>&nbsp;&nbsp;
      <a href="#M000259">fetch_onbase_linescore</a>&nbsp;&nbsp;
      <a href="#M000260">fetch_onbase_plays</a>&nbsp;&nbsp;
      <a href="#M000250">fetch_pitcher</a>&nbsp;&nbsp;
      <a href="#M000256">fetch_pitchers_page</a>&nbsp;&nbsp;
      <a href="#M000247">fetch_players</a>&nbsp;&nbsp;
      <a href="#M000248">fetch_plays</a>&nbsp;&nbsp;
      <a href="#M000234">fetch_scoreboard</a>&nbsp;&nbsp;
      </div>
    </div>

  </div>


    <!-- if includes -->

    <div id="section">





      


    <!-- if method_list -->
    <div id="methods">
      <h3 class="section-bar">Public Class methods</h3>

      <div id="method-M000249" class="method-detail">
        <a name="M000249"></a>

        <div class="method-heading">
          <a href="GamedayLocalFetcher.src/M000249.html" target="Code" class="method-signature"
            onclick="popupCode('GamedayLocalFetcher.src/M000249.html');return false;">
          <span class="method-name">fetch_batter</span><span class="method-args">(gid, pid)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
Fetches the batters/(pid).xml file
</p>
        </div>
      </div>

      <div id="method-M000255" class="method-detail">
        <a name="M000255"></a>

        <div class="method-heading">
          <a href="GamedayLocalFetcher.src/M000255.html" target="Code" class="method-signature"
            onclick="popupCode('GamedayLocalFetcher.src/M000255.html');return false;">
          <span class="method-name">fetch_batters_page</span><span class="method-args">(gid)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
Fetches the HTML page that lists all games for the specified date
</p>
        </div>
      </div>

      <div id="method-M000236" class="method-detail">
        <a name="M000236"></a>

        <div class="method-heading">
          <a href="GamedayLocalFetcher.src/M000236.html" target="Code" class="method-signature"
            onclick="popupCode('GamedayLocalFetcher.src/M000236.html');return false;">
          <span class="method-name">fetch_bench</span><span class="method-args">(gid)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
Fetch the bench.xml file Sample PATH:
components/game/mlb/year_2008/month_04/day_07/gid_2008_04_07_atlmlb_colmlb_1/bench.xml
</p>
        </div>
      </div>

      <div id="method-M000237" class="method-detail">
        <a name="M000237"></a>

        <div class="method-heading">
          <a href="GamedayLocalFetcher.src/M000237.html" target="Code" class="method-signature"
            onclick="popupCode('GamedayLocalFetcher.src/M000237.html');return false;">
          <span class="method-name">fetch_bencho</span><span class="method-args">(gid)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
Fetch the benchO.xml file Sample PATH:
components/game/mlb/year_2008/month_04/day_07/gid_2008_04_07_atlmlb_colmlb_1/benchO.xml
</p>
        </div>
      </div>

      <div id="method-M000238" class="method-detail">
        <a name="M000238"></a>

        <div class="method-heading">
          <a href="GamedayLocalFetcher.src/M000238.html" target="Code" class="method-signature"
            onclick="popupCode('GamedayLocalFetcher.src/M000238.html');return false;">
          <span class="method-name">fetch_boxscore</span><span class="method-args">(gid)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
Fetches the boxscore.xml file and returns its contents Sample PATH:
components/game/mlb/year_2009/month_05/day_08/gid_2009_05_08_detmlb_clemlb_1/boxscore.xml
</p>
        </div>
      </div>

      <div id="method-M000235" class="method-detail">
        <a name="M000235"></a>

        <div class="method-heading">
          <a href="GamedayLocalFetcher.src/M000235.html" target="Code" class="method-signature"
            onclick="popupCode('GamedayLocalFetcher.src/M000235.html');return false;">
          <span class="method-name">fetch_day_highlights</span><span class="method-args">(year, month, day)</span>
          </a>
        </div>
      
        <div class="method-description">
        </div>
      </div>

      <div id="method-M000239" class="method-detail">
        <a name="M000239"></a>

        <div class="method-heading">
          <a href="GamedayLocalFetcher.src/M000239.html" target="Code" class="method-signature"
            onclick="popupCode('GamedayLocalFetcher.src/M000239.html');return false;">
          <span class="method-name">fetch_emailsource</span><span class="method-args">(gid)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
Fetch the emailSource.xml file Sample PATH:
components/game/mlb/year_2008/month_04/day_07/gid_2008_04_07_atlmlb_colmlb_1/emailSource.xml
</p>
        </div>
      </div>

      <div id="method-M000233" class="method-detail">
        <a name="M000233"></a>

        <div class="method-heading">
          <a href="GamedayLocalFetcher.src/M000233.html" target="Code" class="method-signature"
            onclick="popupCode('GamedayLocalFetcher.src/M000233.html');return false;">
          <span class="method-name">fetch_epg</span><span class="method-args">(year, month, day)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
Fetch the epg.xml file Sample PATH:
components/game/mlb/year_2008/month_04/day_07/epg.xml
</p>
        </div>
      </div>

      <div id="method-M000240" class="method-detail">
        <a name="M000240"></a>

        <div class="method-heading">
          <a href="GamedayLocalFetcher.src/M000240.html" target="Code" class="method-signature"
            onclick="popupCode('GamedayLocalFetcher.src/M000240.html');return false;">
          <span class="method-name">fetch_eventlog</span><span class="method-args">(gid)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
Fetches the eventLog.xml file and returns its contents Sample PATH:
components/game/mlb/year_2008/month_04/day_07/gid_2008_04_07_flomlb_wasmlb_1/eventLog.xml
</p>
        </div>
      </div>

      <div id="method-M000242" class="method-detail">
        <a name="M000242"></a>

        <div class="method-heading">
          <a href="GamedayLocalFetcher.src/M000242.html" target="Code" class="method-signature"
            onclick="popupCode('GamedayLocalFetcher.src/M000242.html');return false;">
          <span class="method-name">fetch_game_events</span><span class="method-args">(gid)</span>
          </a>
        </div>
      
        <div class="method-description">
        </div>
      </div>

      <div id="method-M000241" class="method-detail">
        <a name="M000241"></a>

        <div class="method-heading">
          <a href="GamedayLocalFetcher.src/M000241.html" target="Code" class="method-signature"
            onclick="popupCode('GamedayLocalFetcher.src/M000241.html');return false;">
          <span class="method-name">fetch_game_xml</span><span class="method-args">(gid)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
Fetches the game.xml file and returns its contents
</p>
        </div>
      </div>

      <div id="method-M000243" class="method-detail">
        <a name="M000243"></a>

        <div class="method-heading">
          <a href="GamedayLocalFetcher.src/M000243.html" target="Code" class="method-signature"
            onclick="popupCode('GamedayLocalFetcher.src/M000243.html');return false;">
          <span class="method-name">fetch_gamecenter_xml</span><span class="method-args">(gid)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
Fetches the gamecenter.xml file and returns its contents
</p>
        </div>
      </div>

      <div id="method-M000244" class="method-detail">
        <a name="M000244"></a>

        <div class="method-heading">
          <a href="GamedayLocalFetcher.src/M000244.html" target="Code" class="method-signature"
            onclick="popupCode('GamedayLocalFetcher.src/M000244.html');return false;">
          <span class="method-name">fetch_gamedaysyn</span><span class="method-args">(gid)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
Fetch the gameday_Syn.xml file Sample PATH:
components/game/mlb/year_2008/month_04/day_07/gid_2008_04_07_atlmlb_colmlb_1/gameday_Syn.xml
</p>
        </div>
      </div>

      <div id="method-M000254" class="method-detail">
        <a name="M000254"></a>

        <div class="method-heading">
          <a href="GamedayLocalFetcher.src/M000254.html" target="Code" class="method-signature"
            onclick="popupCode('GamedayLocalFetcher.src/M000254.html');return false;">
          <span class="method-name">fetch_games_page</span><span class="method-args">(year, month, day)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
Fetches the HTML page that lists all games for the specified date
</p>
        </div>
      </div>

      <div id="method-M000253" class="method-detail">
        <a name="M000253"></a>

        <div class="method-heading">
          <a href="GamedayLocalFetcher.src/M000253.html" target="Code" class="method-signature"
            onclick="popupCode('GamedayLocalFetcher.src/M000253.html');return false;">
          <span class="method-name">fetch_inning_hit</span><span class="method-args">(gid)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
inning/inning_hit.xml
</p>
        </div>
      </div>

      <div id="method-M000252" class="method-detail">
        <a name="M000252"></a>

        <div class="method-heading">
          <a href="GamedayLocalFetcher.src/M000252.html" target="Code" class="method-signature"
            onclick="popupCode('GamedayLocalFetcher.src/M000252.html');return false;">
          <span class="method-name">fetch_inning_scores</span><span class="method-args">(gid)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
inning/inning_Score.xml
</p>
        </div>
      </div>

      <div id="method-M000251" class="method-detail">
        <a name="M000251"></a>

        <div class="method-heading">
          <a href="GamedayLocalFetcher.src/M000251.html" target="Code" class="method-signature"
            onclick="popupCode('GamedayLocalFetcher.src/M000251.html');return false;">
          <span class="method-name">fetch_inningx</span><span class="method-args">(gid, inning_num)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
inning/inning_X.xml
</p>
        </div>
      </div>

      <div id="method-M000245" class="method-detail">
        <a name="M000245"></a>

        <div class="method-heading">
          <a href="GamedayLocalFetcher.src/M000245.html" target="Code" class="method-signature"
            onclick="popupCode('GamedayLocalFetcher.src/M000245.html');return false;">
          <span class="method-name">fetch_linescore</span><span class="method-args">(gid)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
Fetch the linescore.xml file Sample PATH:
components/game/mlb/year_2008/month_04/day_07/gid_2008_04_07_atlmlb_colmlb_1/linescore.xml
</p>
        </div>
      </div>

      <div id="method-M000257" class="method-detail">
        <a name="M000257"></a>

        <div class="method-heading">
          <a href="GamedayLocalFetcher.src/M000257.html" target="Code" class="method-signature"
            onclick="popupCode('GamedayLocalFetcher.src/M000257.html');return false;">
          <span class="method-name">fetch_media_highlights</span><span class="method-args">(gid)</span>
          </a>
        </div>
      
        <div class="method-description">
        </div>
      </div>

      <div id="method-M000258" class="method-detail">
        <a name="M000258"></a>

        <div class="method-heading">
          <a href="GamedayLocalFetcher.src/M000258.html" target="Code" class="method-signature"
            onclick="popupCode('GamedayLocalFetcher.src/M000258.html');return false;">
          <span class="method-name">fetch_media_mobile</span><span class="method-args">(gid)</span>
          </a>
        </div>
      
        <div class="method-description">
        </div>
      </div>

      <div id="method-M000246" class="method-detail">
        <a name="M000246"></a>

        <div class="method-heading">
          <a href="GamedayLocalFetcher.src/M000246.html" target="Code" class="method-signature"
            onclick="popupCode('GamedayLocalFetcher.src/M000246.html');return false;">
          <span class="method-name">fetch_miniscoreboard</span><span class="method-args">(gid)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
Fetch the miniscoreboard.xml file Sample PATH:
components/game/mlb/year_2008/month_04/day_07/gid_2008_04_07_atlmlb_colmlb_1/miniscoreboard.xml
</p>
        </div>
      </div>

      <div id="method-M000262" class="method-detail">
        <a name="M000262"></a>

        <div class="method-heading">
          <a href="GamedayLocalFetcher.src/M000262.html" target="Code" class="method-signature"
            onclick="popupCode('GamedayLocalFetcher.src/M000262.html');return false;">
          <span class="method-name">fetch_notifications_full</span><span class="method-args">(gid)</span>
          </a>
        </div>
      
        <div class="method-description">
        </div>
      </div>

      <div id="method-M000261" class="method-detail">
        <a name="M000261"></a>

        <div class="method-heading">
          <a href="GamedayLocalFetcher.src/M000261.html" target="Code" class="method-signature"
            onclick="popupCode('GamedayLocalFetcher.src/M000261.html');return false;">
          <span class="method-name">fetch_notifications_inning</span><span class="method-args">(gid, inning)</span>
          </a>
        </div>
      
        <div class="method-description">
        </div>
      </div>

      <div id="method-M000259" class="method-detail">
        <a name="M000259"></a>

        <div class="method-heading">
          <a href="GamedayLocalFetcher.src/M000259.html" target="Code" class="method-signature"
            onclick="popupCode('GamedayLocalFetcher.src/M000259.html');return false;">
          <span class="method-name">fetch_onbase_linescore</span><span class="method-args">(gid)</span>
          </a>
        </div>
      
        <div class="method-description">
        </div>
      </div>

      <div id="method-M000260" class="method-detail">
        <a name="M000260"></a>

        <div class="method-heading">
          <a href="GamedayLocalFetcher.src/M000260.html" target="Code" class="method-signature"
            onclick="popupCode('GamedayLocalFetcher.src/M000260.html');return false;">
          <span class="method-name">fetch_onbase_plays</span><span class="method-args">(gid)</span>
          </a>
        </div>
      
        <div class="method-description">
        </div>
      </div>

      <div id="method-M000250" class="method-detail">
        <a name="M000250"></a>

        <div class="method-heading">
          <a href="GamedayLocalFetcher.src/M000250.html" target="Code" class="method-signature"
            onclick="popupCode('GamedayLocalFetcher.src/M000250.html');return false;">
          <span class="method-name">fetch_pitcher</span><span class="method-args">(gid, pid)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
Fetches the pitchers/(pid).xml file
</p>
        </div>
      </div>

      <div id="method-M000256" class="method-detail">
        <a name="M000256"></a>

        <div class="method-heading">
          <a href="GamedayLocalFetcher.src/M000256.html" target="Code" class="method-signature"
            onclick="popupCode('GamedayLocalFetcher.src/M000256.html');return false;">
          <span class="method-name">fetch_pitchers_page</span><span class="method-args">(gid)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
Fetches the HTML page that lists all games for the specified date
</p>
        </div>
      </div>

      <div id="method-M000247" class="method-detail">
        <a name="M000247"></a>

        <div class="method-heading">
          <a href="GamedayLocalFetcher.src/M000247.html" target="Code" class="method-signature"
            onclick="popupCode('GamedayLocalFetcher.src/M000247.html');return false;">
          <span class="method-name">fetch_players</span><span class="method-args">(gid)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
Fetches the players.xml file and returns its contents
</p>
        </div>
      </div>

      <div id="method-M000248" class="method-detail">
        <a name="M000248"></a>

        <div class="method-heading">
          <a href="GamedayLocalFetcher.src/M000248.html" target="Code" class="method-signature"
            onclick="popupCode('GamedayLocalFetcher.src/M000248.html');return false;">
          <span class="method-name">fetch_plays</span><span class="method-args">(gid)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
Fetch the plays.xml file Sample PATH:
components/game/mlb/year_2008/month_04/day_07/gid_2008_04_07_atlmlb_colmlb_1/plays.xml
</p>
        </div>
      </div>

      <div id="method-M000234" class="method-detail">
        <a name="M000234"></a>

        <div class="method-heading">
          <a href="GamedayLocalFetcher.src/M000234.html" target="Code" class="method-signature"
            onclick="popupCode('GamedayLocalFetcher.src/M000234.html');return false;">
          <span class="method-name">fetch_scoreboard</span><span class="method-args">(year, month, day)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
Fetch the master scoreboard file Sample PATH:
components/game/mlb/year_2008/month_04/day_07/master_scoreboard.xml
</p>
        </div>
      </div>


    </div>


  </div>


<div id="validator-badges">
  <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
</div>

</body>
</html>